package homework.student.coding;

public class Student {
    private String strStuName;
    private String strId;
    private String strSex;
    private int intAge;
    private String strProjectName;
    private int intProjectYear;
    private Project project;

    public Student(String strStuName, String strId, String strSex, int intAge) {
        this.setStrStuName(strStuName);
        this.setStrId(strId);
        this.setStrSex(strSex);
        this.setIntAge(intAge);

    }


    public void showStudentMesg(String strProjectName, int intProjectYear) {
        System.out.printf("学生信息如下：%n姓名：%s%n学号：%s%n性别：%s%n年龄：%d%n所报专业：%s%n学制年限：%d%n",
                this.getStrStuName(), this.getStrId(), this.getStrSex(),this.getIntAge(),strProjectName,intProjectYear);
    }

    public void showStudentMesg(Project project) {
        System.out.printf("学生信息如下：%n姓名：%s%n学号：%s%n性别：%s%n年龄：%d%n所报专业：%s%n学制年限：%d%n",
                this.getStrStuName(), this.getStrId(), this.getStrSex(),this.getIntAge(),project.getStrProjectName(),project.getIntProjectYear());
    }

    public void showStudentMesg() {
        System.out.printf("学生信息如下：%n姓名：%s%n学号：%s%n性别：%s%n年龄：%d%n所报专业：%s%n学制年限：%d%n",
                this.getStrStuName(), this.getStrId(), this.getStrSex(),this.getIntAge(),this.getProject().getStrProjectName(),this.getProject().getIntProjectYear());
    }


    public String getStrStuName() {
        return strStuName;
    }

    public void setStrStuName(String strStuName) {
        this.strStuName = strStuName;
    }

    public String getStrId() {
        return strId;
    }

    public void setStrId(String strId) {
        this.strId = strId;
    }

    public String getStrSex() {
        return strSex;
    }

    public void setStrSex(String strSex) {
        this.strSex = strSex;
    }

    public int getIntAge() {
        return intAge;
    }

    public void setIntAge(int intAge) {
        this.intAge = intAge;
    }

    public String getStrProjectName() {
        return strProjectName;
    }

    public void setStrProjectName(String strProjectName) {
        this.strProjectName = strProjectName;
    }

    public int getIntProjectYear() {
        return intProjectYear;
    }

    public void setIntProjectYear(int intProjectYear) {
        this.intProjectYear = intProjectYear;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }
}
